import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [{
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        component: () => import( /* webpackChunkName: "home" */ '../components/page/home.vue'),
        children: [{
            path: '/home',
            component: () => import('../components/page/nav/index.vue')
        },
        {
            path: '/security',
            component: () => import('../components/page/index/security.vue')
        },
        {
            path: '/personal',
            component: () => import('../components/page/index/personal.vue')
        },
        {
            path: '/enterprise',
            component: () => import('../components/page/index/enterprise.vue')
        },
        {
            path: '/post',
            component: () => import( /* webpackChunkName: "post" */ '../components/page/nav/post.vue'),
        },
        // 职位模板
        {

            path: '/positionTemplate',
            component: () => import( /* webpackChunkName: "positionTemplate" */ '../components/page/nav/positionTemplate.vue'),

        },
        {
            path: '/resume',
            component: () => import( /* webpackChunkName: "resume" */ '../components/page/resume/receivedResume.vue'),
        },
        {
            path: '/TalentPool',
            component: () => import( /* webpackChunkName: "TalentPool" */ '../components/page/nav/TalentPool.vue'),
        },
        {
            path: '/universityZone',
            component: () => import( /* webpackChunkName: "universityZone" */ '../components/page/talentPool/universityZone.vue'),
        },
        {
            path: '/jobFair',
            component: () => import( /* webpackChunkName: "jobFair" */ '../components/page/nav/JobFair.vue'),
        },
        {
            path: '/Message',
            component: () => import( /* webpackChunkName: "Message" */ '../components/page/nav/Message.vue'),
        },
        {
            path: '/chat',
            component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/chat/chat.vue'),
        },
        {
            path: '/Release',
            component: () => import( /* webpackChunkName: "Release" */ '../components/page/Release/Release.vue'),
        },
        {
            path: '/Published',
            component: () => import( /* webpackChunkName: "Published" */ '../components/page/Release/Published.vue'),
        },
        {
            path: '/account',
            component: () => import( /* webpackChunkName: "account" */ '../components/page/account/manage.vue')
        },
        {
            path: '/commonWords',
            component: () => import( /* webpackChunkName: "commonWords" */ '../components/page/account/commonWords.vue')
        },
        {
            path: '/companySet',
            component: () => import('../components/page/account/compSet.vue')
        },
        {
            path: '/JobfairBooking',
            component: () => import( /* webpackChunkName: "JobfairBooking" */ '../components/page/jobfair/JobfairBooking.vue'),
        },
        {
            path: '/modifyInformation',
            component: () => import( /* webpackChunkName: "modifyInformation" */ '../components/page/jobfair/modifyInformation.vue'),
        },
        {
            path: '/receivedResume',
            component: () => import( /* webpackChunkName: "modifyInformation" */ '../components/page/resume/receivedResume.vue'),
        },
        {
            path: '/resumeManage',
            component: () => import( /* webpackChunkName: "modifyInformation" */ '../components/page/resume/resumeManage.vue'),
        },
        // 2020 /06 /22
        // feat:二期路由
        // 收藏的简历
        {
            path: '/collectResume',
            component: () => import( /* webpackChunkName: "collectResume" */ '../components/page/resume/collectResume.vue'),
        },
        {
            path: '/viewRecords',
            component: () => import(/* webpackChunkName: "viewRecords" */ '../components/page/talentPool/viewRecords.vue'),
        },
        {
            path: '/chat',
            component: () => import(/* webpackChunkName: "chat" */ '../components/page/chat/chat.vue')
        }
        ]
    },
    {
        path: '/404',
        component: () => import( /* webpackChunkName: "403" */ '../components/page/404.vue'),
        meta: {
            title: '404'
        }
    },
    {
        path: '/register',
        component: () => import( /* webpackChunkName: "login" */ '../components/page/registration/index.vue'),
        meta: {
            title: '登录'
        }
    },
    {
        path: '/findPassword',
        component: () => import( /* webpackChunkName: "login" */ '../components/page/login/findPassword.vue'),
        meta: {
            title: '找回密码'
        }
    },
    {
        path: '/login',
        // redirect: '/404'
        component: () => import('@/components/page/login/login.vue')
    }
    ]
});